<%= simple_form_for [:admin, @terminal_version], remote: true, :defaults => { :input_html => { :class => "form-control" } }, html: { multipart: true, class: 'form-horizontal' }  do |f| %>
  <fieldset>
    <legend><%= title %></legend>
    <%= f.input :name, label: '名称', collection: ['YBOX-CMMB-RTL8197D-TP3213', 'YBOX-CMMBTV-RTL8197D-TP3213', 'wasu_ap_rt3352_dvbc_ce0401a', 'wasu_ap_rt3352_dvbc_ce0401b','wasu_ap_rt3352_dtmb_ce0401a','wasu_ap_rt3352_dtmb_ce0401b', 'wasu_ap_rtl8197d_dvbc_ce0401b', 'wasu_ap_rtl8197d_dtmb_ce0401b'] %>
    <%= f.input :branch, label: '类型', collection: [['公众版', 'public'], ['中间件', 'middleware'], ['bootimage', 'bootimage']] %>
    <%= f.input :version, label: '版本' %>
    <%= f.input :staff_emails, label: '相关人邮箱', hint: '多个联系人请用;间隔' %>
    <%= f.input :release, label: '是否发布', :input_html => { :class => "" } %>
    <%= f.input :need_send_email, label: '邮件通知', :input_html => { :class => "" } %>
    <%= f.input :file, label: '安装包', :input_html => { :class => "btn btn-default" } %>
    <%= f.input :note, label: '备注' %>
    <%= f.button :wrapped, value: '提 交' %>
  </fieldset>
<% end %>
<%= javascript_include_tag "datepicker.js" %>
<%= javascript_include_tag "prevent_label.js" %>